﻿<%@ Page Language="C#" AutoEventWireup="true"
    Inherits="JWBSTAPP.TbBstCaseApplyAdd" Codebehind="TbBstCaseApplyAdd.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新增</title>
    <link href="../Styles/AddOrEditPage.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="../Styles/validationEngine.jquery.css" type="text/css"
        media="screen" charset="utf-8" />
    <script src="../Scripts/jQuery-1.9.0.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/jquery.validationEngine-cn.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.validationEngine.js"></script>
    <script type="text/javascript" src="../Scripts/CommonADEQ3.js"></script>
    <script type="text/javascript">
        $().ready(function () {
            InitAddPage("TbBstCaseApplyForm", "../AjaxServer/GAXX/TbBstCaseApplyHandler.ashx");
        });
        
        function AddPage(formId, ashxUrl) {
            $("#" + formId).validationEngine('attach', {
                promptPosition: "topLeft", // OPENNING BOX POSITION, IMPLEMENTED: topLeft, topRight, bottomLeft,  centerRight, bottomRight
                //validationEventTriggers: "keyup",
                inlineValidation: false,
                success: false,
                failure: function () {

                },
                onValidationComplete: function (form, status) {
                    if ($("#txtyanzhengma").val() != $("#labyanzhen").html()) {
                        status = false;
                        $("#yzm").html("验证码不正确！"); return
                    } else {
                        $("#yzm").hide();
                    }
                    if (status == true) {
                        var formString = $("#" + formId).serialize() + "&action=01";
                        $.ajax({
                            type: "post",
                            data: formString,
                            url: ashxUrl,
                            success: function (message) {
                                window.parent.pageClick();
                                window.parent.tb_remove();
                            },
                            error: function (XMLHttpRequest, textStatus, errorThrown) {

                                alert(textStatus);
                            }
                        });
                    }
                }
            });
        }
    </script>
</head>
<body>
    <div class="container">
        <form id="TbBstCaseApplyForm" action="" method="get" runat="server">
        <table class="mainTable">
            <tr>
                <td class="mainTable_TitleTd" colspan="4">
                    新增
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texUsername">
                        <em>*</em>用户名：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texUsername" name="texUsername" class="validate[required]" type="text"
                        size="30" value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texPassword">
                        <em>*</em>密码：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texPassword" name="texPassword" class="validate[required]" type="text"
                        size="30" value="" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texName">
                        <em>*</em>姓名：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texName" name="texName" class="validate[required]" type="text" size="30"
                        value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texIdnumber">
                        <em>*</em>身份证号码：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texIdnumber" name="texIdnumber" class="validate[required,minSize[18],custom[idNumber]]"
                        maxlength = "18" type="text" size="30" value="" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texTel">
                        <em>*</em>联系电话：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texTel" name="texTel" class="validate[required]" type="text" size="30"
                        value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texSerialnumber">
                        案件流水号：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texSerialnumber" name="texSerialnumber" class="validate[required]" type="text"
                        size="30" value="" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texRemark">
                        <em>*</em>验证码：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="txtyanzhengma" name="txtyanzhengma" type="text" class="validate[required]"
                        size="10" value="" runat="server" /><label id="yzm" style="color: Red"></label>
                </td>
                <td class="mainTable_LeftTd">
                    <asp:Label ID="labyanzhen" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <%--<td class="mainTable_LeftTd">
                <label for="texIsaudit">
                    是否验证通过 0 未通过 1 通过：</label>
            </td>
            <td class="mainTable_RightTd">
                <input id="texIsaudit" name="texIsaudit" class="validate[required]" type="text" size="30"
                    value="" />
            </td>
            </tr>--%>
            <tr>
                <%-- <td class="mainTable_LeftTd">
                    <label for="texReason">
                        验证未通过原因：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texReason" name="texReason" class="validate[required]" type="text" size="30"
                        value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texAuditdate">
                        验证日期：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texAuditdate" name="texAuditdate" class="validate[required]" type="text"
                        size="30" value="" />
                </td>--%>
            </tr>
            <tr>
                <%-- <td class="mainTable_LeftTd">
                    <label for="texMovesign">
                        同步标志：</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texMovesign" name="texMovesign" class="validate[required]" type="text"
                        size="30" value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texIpaddress">
                        ip地址：</label>
                </td>--%>
                <%-- <td class="mainTable_RightTd">
                    <input id="texIpaddress" name="texIpaddress" class="validate[required]" type="text"
                        size="30" value="" />
                </td>--%>
            </tr>
            <tr>
                <td class="mainTable_ButtonTd" colspan="4">
                    <input class="button" type="submit" value="提交" />
                </td>
            </tr>
        </table>
        </form>
    </div>
</body>
</html>
